package com.haier.dreambox.demo.bean.uplus;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.io.Serializable;

/**
 * Created by smalant on 14/12/30.
 */
@DatabaseTable
public class DeviceLocation implements Serializable {

    @DatabaseField(generatedId = true)
    public transient int id;

    @DatabaseField
    public String longitude; //经度（与城市代码二选一）
    @DatabaseField
    public String latitude;  //纬度（与城市代码二选一）
    @DatabaseField
    public String cityCode;  //城市代码（与经纬度二选一）


    public DeviceLocation() {
    }

    public DeviceLocation(String cityCode, String longitude, String latitude) {
        this.cityCode = cityCode;
        this.longitude = longitude;
        this.latitude = latitude;
    }

    @Override
    public String toString() {
        return "DeviceLocation{" +
                "longitude='" + longitude + '\'' +
                ", latitude='" + latitude + '\'' +
                ", cityCode='" + cityCode + '\'' +
                '}';
    }
}
